<%--
  Created by IntelliJ IDEA.
  User: 15154
  Date: 2020/10/10
  Time: 15:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户管理</title>
    <link rel="stylesheet" href="${pageContext.servletContext.contextPath}/resources/layui/css/layui.css">
</head>
<body>
<img style="width: 200px;height: 50px;" src="${pageContext.servletContext.contextPath}/resources/images/img.png">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>已接受任务</legend>
</fieldset>

<fieldset class="layui-elem-field">
    <legend>已接受任务</legend>
    <c:forEach items="${t1}" var="list">
    <div class="layui-field-box">
        <a style="background-color: #007DDB;" class="layui-btn layui-btn-primary layui-btn-xs">解决中</a>
        <fieldset class="layui-elem-field">
            <legend style="font-size: 30px;">${list.taskname}</legend>
            <div class="layui-field-box" style="padding-left: 10px;">
                <label style="font-size: 15px; color: #908e8e;">详细描述</label>
                <%--<label style="font-size: 15px; color: #908e8e;" >发布人的id:</label>--%>
                <%--<label style="font-size: 15px; color: #908e8e;" >${list.student.stuId}</label>--%>
                <label style="font-size: 15px; color: #908e8e;" >发布时间:</label>
                <label style="font-size: 15px; color: #908e8e;" >${list.addtime}</label>
                <label style="font-size: 15px; color: #908e8e;" >积分:</label>
                <label style="font-size: 15px; color: #908e8e;">${list.reward}</label>
                <label style="font-size: 15px; color: #908e8e;" >接收人姓名:</label>
                <label style="font-size: 15px; color: #908e8e;" >${list.student.stuName}</label>
                <label style="font-size: 15px; color: #908e8e;" >接收人电话:</label>
                <label style="font-size: 15px; color: #908e8e;" >${list.student.tel}</label>
                <label style="font-size: 15px; color: #908e8e;" >接收人楼栋号:</label>
                <label style="font-size: 15px; color: #908e8e;" >${list.student.buildNumber}</label>
            </div>
            <br/>
            <div class="layui-field-box">
                <p style="padding-left: 30px;">${list.taskcontext}</p>
            </div>
            <c:if test="${list.student.stuId==sessionScope.stuId}">
                <span><a  style="background-color: #ff9831;font-size: 20px" href="/receiveTask/${list.taskId}/${list.student.stuId}">确认收货</a></span>
            </c:if>
            </c:forEach>
            <br/>
        </fieldset>
    </div>
    ${page}
</fieldset>
<script src="${pageContext.servletContext.contextPath}/resources/layui/layui.js"></script>
<script type="text/javascript">
    layui.use([ 'jquery', 'layer', 'form', 'table','laydate' ], function() {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        var table = layui.table;
        var laydate=layui.laydate;

        //绑定时间选择器
        laydate.render({
            elem:'#startTime'
        });
        laydate.render({
            elem:'#endTime'
        });

    });
</script>
</body>
</html>
